const readline = require("readline");

// 创建接口实例
let r1 = readline.createInterface({
  input:process.stdin,
  output:process.stdout
});
r1.question("输入表达式:",(experss)=>{
  computed(experss);
  r1.close();
});
function computed(experss){
  let string = new String(experss.trim());
  let oparate=-1,a,b;
  for(let i=0;i<string.length;i++){
      if(['/','*','+','-'].includes(string.charAt(i))){
        oparate=i;
        break;
      }
  }
  if(oparate==-1){
    console.log("没有该运算符");
    return;
  }
  a = new Number(string.substring(0,oparate))
  b = new Number(string.substring(oparate+1))
  switch(string[oparate]){
    case '+':
      console.log("%d+%d=%d",a,b,a+b);
      break;
    case "-":
      console.log("%d-%d=%d",a,b,a-b);
      break;
    case "*":
      console.log("%d*%d=%d",a,b,a*b);
      break;
    case "/":
      if(b==0){
        console.log("分母不能为零")
    
      }else{
        console.log("%d/%d=%d",a,b,a/b);
      }
      break;
  }
}